package org.springblade.modules.platform.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import org.springblade.modules.platform.dto.PhysicalDataTableListByPageDTO;
import org.springblade.modules.platform.service.IMeasuringPointTableService;
import org.springblade.modules.platform.vo.MeasuringPointTableByPageVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.log.annotation.ApiLog;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@AllArgsConstructor
@RequestMapping("/service-huateng-sxdb/oneSide")
@Api(value = "一侧量数据接口", tags = "一侧量数据接口")
public class MeasuringPointTableController {

    private final IMeasuringPointTableService iMeasuringPointTableService;

    @ApiLog("分页")
    @GetMapping("/getListByPage")
    @ApiOperationSupport(order = 4)
    @ApiOperation(value = "分页", notes = "传入physicalDataTableListByPageDTO")
    public R<MeasuringPointTableByPageVO> getListByPage(PhysicalDataTableListByPageDTO physicalDataTableListByPageDTO){
        return R.data(iMeasuringPointTableService.getListByPage(physicalDataTableListByPageDTO));
    }
}
